﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SurvivalMan
{
    /// <summary>
    /// This class creates the arrows
    /// </summary>
    class Arrow
    {
        public Texture2D arrow;
        public Vector2 position, hastighet;       
        public Color[] arrowTextureData;
        
        /// <summary>
        /// This class are needed to print the arrows for the player ingame.
        /// The parameters needed are just the texture2d of the arrow picture.
        /// </summary>
        /// <param name="arrow"></param>
        public Arrow(Texture2D arrow)
        {
            this.arrow = arrow;
        }
        /// <summary>
        /// This function just draws the arrow on the screen.
        /// </summary>
        /// <param name="spriteBatch"></param>
        public void draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(arrow, position, Color.White);
        }
    }
}
